<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>



        <script>

            // js: {}代表对象
            var user = {
                name : "zs",
                age: 18
            }

            // user.name = "ls"
            // console.log(user.name)

            // user.address = "wu";
            user["address"] = "wu";
            console.log(user)
            console.log(user["name"])




        </script>

</body>
</html>
